/* 存放绩效管理路由 */
import { DEFAULT_LAYOUT } from '../base';
// import DEFAULT_LAYOUT from '@/layout/default-layout.vue'
import { AppRouteRecordRaw } from '../types';

const C_CHECKATTENDANCE: AppRouteRecordRaw = {
  path: 'performanceManagement',
  name: 'C_PerformanceManagement',
  meta: {
    locale: '绩效管理',
    requiresAuth: true,
    icon: 'icon-home',
    order: 8,
    hideInMenu: false,
    roles: ['user']
  },
  redirect: {
    name: 'C_MyPerformance'
  },
  children: [
    {
      path: 'myPerformance',
      name: 'C_MyPerformance',
      component: () =>
        import('@/views/Client/PerformanceManagement/MyPerformance/index.vue'),
      meta: {
        locale: '我的绩效',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'targetManagement',
      name: 'C_TargetManagement',
      component: () =>
        import(
          '@/views/Client/PerformanceManagement/TargetManagement/index.vue'
        ),
      meta: {
        locale: '目标管理',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'subManagement',
      name: 'C_SubManagement',
      component: () =>
        import('@/views/Client/PerformanceManagement/SubManagement/index.vue'),
      meta: {
        locale: '下属管理',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'myProbation',
      name: 'C_MyProbation',
      component: () =>
        import('@/views/Client/PerformanceManagement/MyProbation/index.vue'),
      meta: {
        locale: '我的试用期考核',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'evaluationTask',
      name: 'C_EvaluationTask',
      component: () =>
        import('@/views/Client/PerformanceManagement/EvaluationTask/index.vue'),
      meta: {
        locale: '绩效评价任务',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    },
    {
      path: 'evaluationResult',
      name: 'C_EvaluationResult',
      component: () =>
        import(
          '@/views/Client/PerformanceManagement/EvaluationResult/index.vue'
        ),
      meta: {
        locale: '绩效评价结果调整',
        requiresAuth: true,
        icon: 'icon-home',
        hideInMenu: false,
        roles: ['user']
      }
    }
  ]
};

export default C_CHECKATTENDANCE;
